<?php
namespace App\Models\Lession;



class Course extends \App\Libs\Base\BaseModel
{
    protected $__TABLE__ = 't_jia_course';

	public function beforeValidation()
	{
	 self::skipValidation(['buy_num','play_num','flower_num','comment_num','isshow'] , $this );
	}

    public function initialize()
    {
        parent::initialize();
        $this->hasMany("id", "App\Models\Lession\Lession", "coustar_id",['alias'=> 'lessions']);
    }


}
